# 开发环境配置
DEBUG = True

ALLOWED_HOSTS = ['localhost', '127.0.0.1']

# 数据库配置
# DATABASES = {
#     'default': {
#         'ENGINE': 'django.db.backends.postgresql',
#         'NAME': 'znzz',
#         'USER': 'znzz',
#         'PASSWORD': 'znzz@db.ht',
#         'HOST': '172.18.50.58',
#         'PORT': '2000',
#         'OPTIONS': {
#             'options': '-c search_path="Artificial_Scheduling",public'
#         }
#     }
# }
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'Artificial_Scheduling',
        'USER': 'postgres',
        'PASSWORD': '123456',
        'HOST': 'localhost',
        'PORT': '5432',
        'OPTIONS': {
            'options': '-c search_path="Artificial_Scheduling",public'
        }
    }
}

# CORS配置 - 开发环境
CORS_ALLOWED_ORIGINS = [
    "http://localhost:3000",
    "http://127.0.0.1:3000",
    "http://localhost:5173",
    "http://127.0.0.1:5173",
]

# API基础URL
API_BASE_URL = 'http://localhost:8000'